package conditions;

public class DepositConditions extends Conditions {

	private int month_1 = 5;
	private int month_6 = 10;
	private int year_1 = 20;
	private int length;

	public DepositConditions() {
	}

	@Override
	public int setInterest(int setCondition) {
		int interest = 0;

		switch (setCondition) {
		case 1:
			interest = month_1;
			length = 1;
			break;

		case 2:
			interest = month_6;
			length = 6;
			break;

		case 3:
			interest = year_1;
			length = 12;
			break;

		}

		return interest;
	}

	@Override
	public int setRuntime(int setCondition) {

		switch (setCondition) {
		case 1:
			length = 3;
			break;

		case 2:
			length = 6;
			break;

		case 3:
			length = 12;
			break;

		}
		return length;

	}
	
	public int getsetRuntime(int setCondition){
		return setRuntime(setCondition);
		
		
	}

}
